﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WanPiJie.WebSite.WebControls
{
	public partial class UserPanel : System.Web.UI.UserControl
	{
		public Baby Baby { get; set; }
		public Int32 BabyCount { get; set; }
		public Int32 RecordCount { get; set; }

		protected void Page_Load(object sender, EventArgs e)
		{
			var parent = this.Page as PageMustLogin_Baby;
			if (parent != null)
			{
				this.Baby = parent.Baby;
				this.RecordCount = WpjSf.GrowthRecordService.GetGrowthRecordCount(this.Baby.Id);
			}
		}
	}
}